<!--
 * 分享回流组件
 * @author: jinweibin
 * @since: 2023-09-12
 * share-navbar.vue
-->
<template>
  <div class="share-navbar" @click="onOpenOrDownloadApp">
    <div class="logo">
      <img src="./assets/sharebdzq-new.png" alt="logo" />
    </div>
    <div class="info">
      <div class="title">东北证券融e通APP</div>
      <div class="desc">功能全面 极速安全</div>
    </div>
    <div class="action"><span>打开</span></div>
  </div>
</template>

<script setup lang="ts">
// // 领取优惠券
const emits = defineEmits(["onOpenApp"]);

// 唤起 APP
const onOpenOrDownloadApp = () => {
  emits("onOpenApp");
  // 没有APP跳转到下载中间页
  setTimeout(() => {
    window.location.href = "https://www.nesc.cn/main/home/softwaredownload/detail.shtml?swid=2";
  }, 3000);
};
</script>

<style lang="less" scoped src="./assets/share-navbar.less"></style>
